import request from '@/utils/request'

// 查询保险理赔信息列表
export function listSettleMain(query) {
  return request({
    url: '/insurance/settle/getSettleList',
    method: 'get',
    params: query
  })
}// 查询保险理赔信息列表
export function listSettle(query) {
  return request({
    url: '/insurance/settle/list',
    method: 'get',
    params: query
  })
}

// 查询保险理赔信息详细
export function getSettle(id) {
  return request({
    url: '/insurance/settle/' + id,
    method: 'get'
  })
}

// 新增保险理赔信息
export function addSettle(data) {
  return request({
    url: '/insurance/settle',
    method: 'post',
    data: data
  })
}

// 修改保险理赔信息
export function updateSettle(data) {
  return request({
    url: '/insurance/settle',
    method: 'put',
    data: data
  })
}

// 删除保险理赔信息
export function delSettle(id) {
  return request({
    url: '/insurance/settle/' + id,
    method: 'delete'
  })
}
